package com.dong.config;

import com.dong.factory.MyFactoryBean;
import org.springframework.context.annotation.Bean;

/**
 * 测试工厂bean  ,这个bean的目的是在容器中注册另外一个bean,而本身需要加"&" 才能按照名字取到
 * {@link org.springframework.beans.factory.FactoryBean}
 */
public class T024FactoryBeanConfig {
    @Bean
    public MyFactoryBean myFactoryBean() {
        return new MyFactoryBean();
    }
}
